home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Alles Voor Internet / Tout Pour Internet
/
alles voor internet.iso
/
MacInternet™
/
Archive-tools
/
LZSS Res ƒ
/
LZSSExample.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-06-06
|
1KB
|
52 lines
/*
Copyright © 1994 Demos, inc.
Written by: Dmitry Boldyrev
*/
#include "LZSSLib.h"
#include "utils.h"
void InitToolbox(void)
{
InitGraf(&qd.thePort);
InitFonts();
InitWindows();
InitMenus();
TEInit();
InitDialogs(nil);
InitCursor();
InitResources();
FlushEvents(everyEvent,0);
SetEventMask(everyEvent);
MaxApplZone();
}
main()
{
Handle theHandle;
PicHandle aPicture;
short rAttrs, i, ac;
ResType res;
WindowPtr theWindow;
Rect winarea, picRect;
InitToolbox();
theWindow = (WindowPtr)CreateWindow( &screenBits.bounds, "\p", plainDBox, 0L);
HideMenuBar(theWindow);
SetPort( (WindowPtr)theWindow );
FillRect( &thePort->portRect, black );
if ((theHandle = GetCResource('PICT', 5002)) == nil)
ExitToShell();
aPicture = (PicHandle)theHandle;
picRect = (*aPicture)->picFrame;
CenterRect(theWindow->portRect, &picRect);
DrawPicture(aPicture, &picRect);
while (!Button());
ShowMenuBar(theWindow);
DisposeHandle(theHandle);
DisposeWindow(theWindow);
}